class CabinetInfoModel {
  int? deviceId;
  String? remarks;
  String? creationTime;
  int? basisState;
  int? assetNumber;
  bool? isDeleted;
  int? id;
  int? boardNo;
  String? timestamp;
  bool? isActive;
  TmcDevices? tmcDevices;

  CabinetInfoModel({
    this.deviceId,
    this.remarks,
    this.creationTime,
    this.basisState,
    this.assetNumber,
    this.isDeleted,
    this.id,
    this.boardNo,
    this.timestamp,
    this.isActive,
    this.tmcDevices,
  });

  CabinetInfoModel.fromJson(Map<String, dynamic> json) {
    deviceId = json['deviceId'];
    remarks = json['remarks'];
    creationTime = json['creationTime'];
    basisState = json['basisState'];
    assetNumber = json['assetNumber'];
    isDeleted = json['isDeleted'];
    id = json['id'];
    boardNo = json['boardNo'];
    timestamp = json['timestamp'];
    isActive = json['isActive'];
    tmcDevices = json['tmcDevices'] != null ? new TmcDevices.fromJson(json['tmcDevices']) : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['deviceId'] = this.deviceId;
    data['remarks'] = this.remarks;
    data['creationTime'] = this.creationTime;
    data['basisState'] = this.basisState;
    data['assetNumber'] = this.assetNumber;
    data['isDeleted'] = this.isDeleted;
    data['id'] = this.id;
    data['boardNo'] = this.boardNo;
    data['timestamp'] = this.timestamp;
    data['isActive'] = this.isActive;
    if (this.tmcDevices != null) {
      data['tmcDevices'] = this.tmcDevices!.toJson();
    }
    return data;
  }
}

class TmcDevices {
  String? disPlayNo;
  String? deviceAddress;

  TmcDevices({this.disPlayNo, this.deviceAddress});

  TmcDevices.fromJson(Map<String, dynamic> json) {
    disPlayNo = json['disPlayNo'];
    deviceAddress = json['deviceAddress'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['disPlayNo'] = this.disPlayNo;
    data['deviceAddress'] = this.deviceAddress;
    return data;
  }
}
